package springcloud.easybuy.api;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import springcloud.easybuy.entity.EasybuyNews;

import java.util.List;

@FeignClient(value = "easybuy-database-provider")
@RequestMapping("/news/provider")
public interface NewsServiceClient {

    @RequestMapping("/news/queryAll")
    public List<EasybuyNews> queryAll();
}
